
#include "../CAShared.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include "support/Json/CSContentJsonDictionary.h"
#include "platform/android/jni/JniHelper.h"

void android_ShowShared(const std::string &imageName, int type)
{
	//JniMethodInfo jmi;
	//if (JniHelper::getStaticMethodInfo(jmi, "longtu/app/src/Share", "showShare", "()V"))
	//{
	//	jmi.env->CallStaticObjectMethod(jmi.classID, jmi.methodID);
	//}

	JniMethodInfo jmi;
	//"(Ljava/lang/String;Ljava/lang/String;J)V")
	if (JniHelper::getStaticMethodInfo(jmi, "longtu/app/src/Share", "showShare", "(Ljava/lang/String;I)V"))
	{
		jmi.env->CallStaticObjectMethod(jmi.classID, jmi.methodID, jmi.env->NewStringUTF(imageName.c_str()), type);
	}

}

#endif